<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="TeamList.aspx.cs" Inherits="Pages_Teams_TeamList" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ObjectDataSource ID="ODSTeam" runat="server" TypeName="DailyReport.Core.Bussines.TeamManager"
         SelectMethod="GetInstanceList" SortParameterName="sortExpression" 
         EnablePaging="true" SelectCountMethod="CountInstances" StartRowIndexParameterName="startRowIndex" MaximumRowsParameterName="maxRows"/>
    
    <table border="0" cellpadding="0" cellspacing="0" width="90%">
    <tr>
        <td>Teams</td>
    </tr>
    <tr>
        <td>
            <asp:GridView ID="GVTeams" runat="server" AutoGenerateColumns="false" DataSourceID="ODSTeam" 
            AllowPaging="true" PageSize="10" AllowSorting="true">
                <Columns>
                        <asp:hyperlinkfield Text="Editar"
                        datanavigateurlfields="id"
                        datanavigateurlformatstring="~/rutadellink&teamId={0}"
                        target="_self">
                        </asp:hyperlinkfield>
                        <asp:BoundField DataField ="name" HeaderText="Nombre" SortExpression="name"/>
                    </Columns>
            </asp:GridView>
        </td>
    </tr>
    </table>
</asp:Content>

